#ifndef _LOG_H_
#define _LOG_H_

#include <iostream>
#include <fstream>

using namespace std;

class CLog
{
public:
	CLog();
	static CLog * GetInstance();

	bool Init( string log_filename );
	void Log( string log );
	bool Close();

private:
	static CLog * instance;
	bool use_stdout;
public:
	fstream log_stream;

};

#endif // _LOG_H_
